home *** CD-ROM | disk | FTP | other *** search
- property myMovieName, myCounter
- global gvideo, greturnmovie, gMovieName
-
- on new me
- set myCounter to 0
- return me
- end
-
- on autoUnloadMovie me
- if not voidp(myMovieName) then
- unloadMovie(myMovieName)
- end if
- set myMovieName to the movieName
- end
-
- on autoPuppet me, start, stop
- cursor(-1)
- repeat with i = start to stop
- puppetSprite(i, 1)
- end repeat
- end
-
- on autoNotPuppet me, start, stop
- repeat with i = start to stop
- puppetSprite(i, 0)
- end repeat
- end
-
- on checkSound me
- if not soundBusy(1) then
- puppetSound("LoveLite")
- end if
- end
-
- on playSound me, whichChannel, whichSound
- puppetSound(whichChannel, 0)
- puppetSound(whichChannel, member whichSound)
- end
-
- on playVideo me, whichVid
- set gvideo to whichVid
- set greturnmovie to the movieName
- autoGoMovie(me, "Movie5", 1)
- end
-
- on playSpecialVideo me, whichVid
- set greturnmovie to the movieName
- autoGoMovie(me, "SlMov5", 1)
- end
-
- on animateButton me, startNum, endNum
- set myCounter to myCounter + 1
- if myCounter > 5 then
- set myCounter to 1
- end if
- repeat with i = startNum to endNum
- if rollOver(i) then
- cursor([1, 2])
- if the mouseDown then
- set the member of sprite i to member (getName(me, i) & "D.PCT")
- else
- set the member of sprite i to member (getName(me, i) & "0.PCT")
- end if
- next repeat
- end if
- set the member of sprite i to member (getName(me, i) & myCounter & ".PCT")
- end repeat
- if (rollOver() < startNum) or (rollOver() > endNum) then
- cursor(-1)
- end if
- end
-
- on resetCounter me
- set myCounter to 0
- end
-
- on getName me, whichSprite
- set myName to the name of the member of sprite whichSprite
- return chars(myName, 1, the length of myName - 5)
- end
-
- on getID me, whichSprite
- set myName to the name of the member of sprite whichSprite
- return chars(myName, the length of myName - 4, the length of myName - 4)
- end
-
- on autoGoMovie me, whichMovie, fadeFlag
- set gMovieName to whichMovie
- if voidp(fadeFlag) then
- autoNotPuppet(me, 1, 41)
- go("exitblank")
- else
- if fadeFlag then
- autoPuppet(me, 1, 41)
- go("fade")
- else
- autoPuppet(me, 1, 41)
- go("cont")
- end if
- end if
- end
-